#ifndef XXBORDER_H
#define XXBORDER_H

#include <QWidget>
#include <QFrame>
#include "XXtitleBar.h"

/**
 * @brief The XXborder class
 * target
 * 1 make .ui
 * 2 components - titleBar
 * 3 components - narBar
 */
class XXborder : public QFrame{
    Q_OBJECT
public:
    XXborder(QWidget *parent = nullptr);
    virtual ~XXborder();

    //

    // titlebar
    XXtitleBar* titleBar(){return _titleBar;}

    // content
    //void setBorderWidth(int width);
    //void setResizable(bool resizable);
    void setContent(QWidget *widget);
    //void addStackContent(QString name, QMetaObject obj);

private:
    XXtitleBar *_titleBar;
    QFrame *_background;
};

#endif
